/** 跨域请求使用 dev: 开发环境（未走网关）  product: 开发环境（走网关） */
export const api = isDev() ? 'http://10.204.125.87:10009' : 'http://bigdev02.isky.com:8500';
export const bigranger = isDev() ? 'http://bigdata003.com:6080/bigranger' : 'http://bigdev02.isky.com:6080/bigranger';

export const bigdatacommon = isDev() ? `${api}` : `${api}/bigdatacommon`;
export const bigdatasupport = isDev() ? `${api}/bigdatasupport` : `${api}/bigdatasupport`;

export const bigdatajob = 'http://10.204.125.216:10006/bigdatajob';

/** iframe外部项目地址 start */
export const ranger = 'http://10.204.125.208:6080';
export const eurekaServer = 'http://bigdev02.isky.com:8762/?islogin=false';
export const ambariServer = 'http://bigdev02.isky.com:8080';
export const springBootAdmin = 'http://bigdev02.isky.com:8788';
export const mycat = 'http://10.204.125.209:8082/mycat';
/** iframe外部项目地址 end */

/** iframe外部项目地址 end */

export function isDev () {
    return process.env.NODE_ENV === 'development';
}
